#Pogoplug Pro Notes
#more notes: http://pastebin.com/mv1WdVdH
#default username: root
#default password: ceadmin

#access hidden web interface
http://<pogo IP>/sqdiag/BGQueue

#execute command - https needed
#start ssh
curl -k "https://root:ceadmin@<pogo IP>/sqdiag/HBPlug?action=command&command=dropbear%20start";
#or visit in web browser
https://<pogo IP>/sqdiag/HBPlug

#enable telnet without need for username or password
telnetd -l sh
#or set port
telnetd -p <port> -l sh

#############SSH DropBear###########
#The version of Dropbear on this device is old
#it uses an old/less secure encryption that your client might not like
#you can override this on your client side like this
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 root@192.168.1.104
#there is no sftp server, but you can scp like this
scp -oKexAlgorithms=+diffie-hellman-group1-sha1 <file> root@192.168.1.104:

#############upgrade to newer DropBear##########
#cross compile on desktop
sudo apt-get install gcc-arm-linux-gnueabi
wget "https://matt.ucc.asn.au/dropbear/releases/dropbear-2016.74.tar.bz2"
tar -xjf dropbear-2016.74.tar.bz2
cd dropbear-2016.74
./configure --host=arm-linux-gnueabi --prefix=/ --disable-zlib CC=arm-linux-gnueabi-gcc LD=arm-linux-gnueabi-ld
make
#copy to device
scp -oKexAlgorithms=+diffie-hellman-group1-sha1 dropbear root@192.168.1.104:
#test it, backup old version, and replace
killall dropbear #you'll lose your connection so reconnect with telnet or serial
./dropbear #once you make sure it works kill it and move it
killall dropbear
mv /usr/sbin/dropbear /usr/sbin/dropbear.old
mv dropbear /usr/sbin/dropbear
/usr/sbin/dropbear